package org.exez.modules.visitor.dto.terminal;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description: 访客申请记录表
 * @Author: exez-boot
 * @Date: 2020-06-04
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "终端访客登记对象")
public class VisitorReservationDTO {

    /**
     * 访客姓名
     */
    @ApiModelProperty(value = "访客姓名",required = true)
    @NotBlank(message = "访客姓名不能为空")
    private String name;
    /**
     * 访客电话号码
     */
    @ApiModelProperty(value = "访客电话号码",required = true)
    @NotBlank(message = "访客电话号码不能为空")
    private String mobile;

    /**
     * 证件类型 1身份证，2护照
     */
    @ApiModelProperty(value = "1身份证，2护照",required = true)
    @NotNull(message = "证件类型 不能为空")
    private Integer identityType;

    /**
     * 访客证件号
     */
    @ApiModelProperty(value = "访客证件号",required = true)
    @NotNull(message = "访客证件号不能为空")
    private String identityValue;

    /**
     * 驾车拜访的输入车牌号
     */
    @ApiModelProperty(value = "驾车拜访的输入车牌号")
    private String numberPlate;

    /**
     *  访客性别 0:女 1：男
     */
    @ApiModelProperty(value = " 访客性别 0:女 1：男")
    @Range(min=0, max=1,message = "请输入正确的性别")
    private Integer sex;

    /**访客所属公司*/
    @ApiModelProperty(value = "访客所属公司")
    private String company;


    /**
     * 1 登记已进入 2：登记未进入
     */
    @ApiModelProperty(value = "登记类型",required = true)
    @NotNull(message = "登记类型不能为空")
    private Integer registrationStatus;

    /**
     * 拜访原因
     */
    @ApiModelProperty(value = "拜访原因")
    @Length(max = 50, message = "拜访原因长度限制50字符")
    private String visitRemark;

    /**
     * 被访人姓名
     */
    @ApiModelProperty(value = "被访人姓名",required = true)
    @NotBlank(message = "被访人姓名不能为空")
    private String respondentName;
    /**
     * 被访人手机
     */
    @ApiModelProperty(value = "被访人手机",required = true)
    @NotBlank(message = "被访人手机不能为空")
    private String respondentMobile;

    /**
     * 人脸照片
     */
    @ApiModelProperty(value = "人脸照片（base64）",required = true)
    @NotBlank(message = "人脸照片不能为空")
    private String facePhoto;


    /**
     * 事业单位编码
     */
    @ApiModelProperty(value = "事业单位编码",required = true)
    @NotBlank(message = "事业单位编码不能为空")
    private String institutionCode;

    /**
     * 终端编码
     */
    @ApiModelProperty(value = "终端编码",required = true)
    @NotBlank(message = "终端编码不能为空")
    private String deviceCode;



    /**
     * 甬行码颜色
     */
    @ApiModelProperty(value = "甬行码: 1.绿码2.黄码 3.红码",required = true)
    @NotNull(message = "甬行码颜色 不能为空")
    private Integer codeColour;

    /**
     * 访问日期
     */
    @ApiModelProperty(value = "访问日期",required = true)
    @NotNull(message = "访问日期不能为空")
    private Date visitDate;

}
